package utils

import (
	"fmt"
	"strings"
)

//给字符串生成md5
//str 需要加密的字符串  salt  interface{}  加密的盐  str  返回md5
func Md5Crypt(str string,salt ...interface{})(CryptStr string){
	if l := len(salt) ;l>0{
		slice := make([]string,l+1)
		str = fmt.Sprintf(str+strings.Join(slice,"%v"),,salt...)
	}
}